package com.woniuxy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.entity.Region;
import com.woniuxy.entity.Review;
import com.woniuxy.mapper.RegionMapper;
import com.woniuxy.mapper.ReviewMapper;
import com.woniuxy.service.RegionService;
import com.woniuxy.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReviewServiceImpl extends ServiceImpl<ReviewMapper, Review> implements ReviewService {
    @Autowired
    private ReviewMapper reviewMapper;

    @Override
    public Review getByOrderId(Integer orderId) {
        return reviewMapper.getByOrderId(orderId);
    }
}
